dojo.provide("ctrlspace.core.commands.Command");
dojo.declare("ctrlspace.core.commands.Command", ctrlspace.core.Plugin, {
	// Attributes
	handler: null,
	
	// Constructor
	constructor: function(command) {
		dojo.require(command.id);
		this.handler = IDE._getPlugin(command.id);
	},
	
	// Methods
	execute: function(args) {
		if (this.handler != null) {
			this.handler.execute(args);
		}
	}
});